<template>
  <div class="index">
    <div class="content">
      <div class="center-content">
        <img src="@/assets/img/Woolf.jpg" alt="Virginia Woolf" class="avatar">
        <h1>Literature Trace</h1>
        <p class="subtitle">文学对普通人的意义，<br>就是让精神超越日常。</p>
        <router-link to="/login" class="login-btn">Login</router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Index'
}
</script>

<style scoped>
.index {
  width: 100vw;
  height: 100vh;
  background-image: url('~@/assets/img/bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.index::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  background: rgba(47, 79, 79, 0.6);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  max-width: 80%;
  margin: 0 auto;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-family: 'Century Gothic', sans-serif;
  letter-spacing: 4px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  text-align: center;
}

.login-btn {
  display: inline-block;
  padding: 0.8rem 3rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
</style> 